package com.rh.number.common;

import lombok.Data;
import java.util.List;

@Data
public class BatchOperationResult {
    private boolean success;
    private String message;
    private int processedCount;
    private List<String> processedNumbers;
    private List<String> processedIdentifiers; // 改为 List<String>
    private int affectedRows; // 新增受影响行数字段

    public BatchOperationResult(boolean success, String message) {
        this.success = success;
        this.message = message;
    }

    public BatchOperationResult(boolean success, String message, List<String> processedNumbers) {
        this.success = success;
        this.message = message;
        this.processedCount = processedNumbers.size();
        this.processedNumbers = processedNumbers;
    }

    public BatchOperationResult(boolean success, String message, int affectedRows) {
        this.success = success;
        this.message = message;
        this.affectedRows = affectedRows;
    }

    public boolean isSuccess() {
        return success;
    }

    public String getMessage() {
        return message;
    }

    public int getProcessedCount() {
        return processedCount;
    }
}